#include <windows.h>

long FAR PASCAL WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	return DefWindowProc(hWnd, message, wParam, lParam);
}


HWND m_hWnd = NULL;

void FrameMove()
{

}

int APIENTRY WinMain(HINSTANCE hInstance,
					   HINSTANCE hPrevInstance,
					   LPTSTR    lpCmdLine,
					   int       nCmdShow)
{

	WNDCLASS wc;

	wc.style = CS_HREDRAW | CS_VREDRAW;
	wc.lpfnWndProc = WndProc;
	wc.cbClsExtra = 0;
	wc.cbWndExtra = 0;
	wc.hInstance = hInstance;
	wc.hIcon = LoadIcon(hInstance, ("iconsm"));
	wc.hCursor = NULL;
	wc.hbrBackground = (HBRUSH )GetStockObject(BLACK_BRUSH);
	wc.lpszClassName = ("Ten");
	wc.lpszMenuName = NULL;
	RegisterClass(&wc);

	m_hWnd = CreateWindowEx(WS_EX_TOPMOST,
		("Ten"),
		("Ten"),
		WS_POPUP,
		0,
		0,
		640,
		480,
		NULL,
		NULL,
		hInstance,
		NULL);

	ShowWindow(m_hWnd, SW_SHOW);
	UpdateWindow(m_hWnd);


	MSG msg;
	while( 1 )
	{
		if( PeekMessage( &msg, NULL, 0, 0, PM_NOREMOVE ) )
		{
			if( !GetMessage( &msg, NULL, 0, 0 ) )
			{
				return msg.wParam;
			}
			TranslateMessage(&msg);
			DispatchMessage(&msg);

		}	
		else
		{
			FrameMove(); 
		}        
	}

	return 0;

}

